<template>
  <div class="custom-detail-track">
    <h5 class="chart-title">访问足迹</h5>
    <ul v-for="(times, index) in trackList" :key="index">
      <li v-for="(item, key) in times.msgList" :key="key">
        <p class="content-title">{{item.timeStr | dateTimeFormatter('')}}</p>
        <div class="content-box" :style>
          <span class="icon-radius" id="icon-radius" :class="{day:index==0,dayIn:!times.show_item}"></span>
          <!-- <p><span>{{item.clientName}}</span>{{item.clientName ? item.markedWords.replace(item.clientName, '') : item.markedWords}}</p> -->
          <p>{{item.markedWords}}</p> 
        </div>
      </li>
    </ul>
    <div class="no-data" v-if="!this.trackList.length  && finished">
      <img src="@/assets/img/article/empty_article@2x.png"alt="">
      <p>暂无访问足迹，快去分享吧~ </p>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    trackList: { type: Array },
    finished: { type:　Boolean }
  },
  mounted () { }
}
</script>
<style lang="less">
.custom-detail-track {
  position: relative;
  min-height: 260px;
  .chart-title {
    font-size: 20px;
    font-weight: 600;
    color: #13284D;
    padding: 16px;
    padding-bottom: 10px;
    line-height: 28px;
  }
  .info-container {
    margin: 20px 20px 25px;
    padding: 25px 0 19px;
    display: flex;
    justify-content: space-around;
    .info-item {
      text-align: center;
      .info-title {
        font-size: 12px;
        font-weight: 400;
        color: rgba(153, 153, 153, 1);
      }
      .info-value {
        font-size: 24px;
        font-weight: 500;
        color: rgba(51, 51, 51, 1);
        line-height: 36px;
      }
    }
  }
  ul {
    margin-top: 5px;
    .dayIn {
      width: 7px;
      height: 7px;
      background: #e5e5e5;
      top: -13.5px;
      left: -4.5px;
      margin-bottom: 80px;
    }
    .day {
      width: 10px;
      height: 10px;
      background: #007ae6;
      top: -15.5px;
      left: -5.5px;
    }
    li {
      width: 322px;
      margin-left: 24px;
      .content-box {
        border-left: 1px solid #e5e5e5;
        padding-top: 10px;
        position: relative;
        padding-left: 16px;
        padding-bottom: 32px;
        .icon-radius {
          border-radius: 50%;
          position: absolute;
        }
      }
      
      p {
        font-size: 14px;
        font-weight: 400;
        color: rgba(102, 102, 102, 1);
        line-height: 22px;
        flex-wrap: wrap;
        span {
          color: #007ae6;
        }
      }
      .content-title {
        font-weight: 600;
        color: #333333;
        margin-left: 16px;
      }
    }
  }
  .no-data {
    font-size: 12px;
    font-size: 0.32rem;
    text-align: center;
    margin-top: 40px;
    color: #999;
    img {
      width: 88px;
      height: 88px;
    }
  }
}
</style>
